0
我想使它使得當使用CTRL +或 - 時,文本不像下面的圖像那樣受到影響。我試過webkit,使用百分比而不是像素值,但它不起作用。我想要文字不重新調整大小或移動css
.header {
background-color: #FFFFFF;
height: 7%;
position: fixed;
top: 0;
left: 0;
width: 100%;
box-shadow: 0px 5px 10px #424242;
}
.body {
margin: 0;
-webkit-text-size-adjust: 0;
}
.main {
}
.hub {
margin-left: 10%;
margin-right: 10%;
}
@font-face {
font-family: coolvetica;
src: url("font/coolvetica rg.ttf");
}
.title {
font-family: coolvetica;
font-size: x-large;
line-height: 180%;
margin-top: 0.35%;
margin-bottom: 0.35%;
height: 80%;
left: 1%;
position: absolute;
display: inline-block;
vertical-align: top;
overflow: hidden;
}
.navbar {
position: fixed;
top: 2%;
left: 14%;
list-style-type: none;
margin: 0;
padding: 0;
}
.item {
display: inline;
float: left;
}
.label {
color: black;
text-decoration: none;
padding: 8px;
}
.title-box {
height: 100%;
line-height: 100%;
}
<html>
<head>
<title>TheShieldNetwork</title>
<link href="style.css" rel="stylesheet">
</head>
<body class="body">
<div class="header">
<p class="title">TheShieldNetwork</p>
<ul class="navbar">
<li class="item"><a class="label" href="default.asp">Home</a></li>
<li class="item"><a class="label" href="news.asp">News</a></li>
<li class="item"><a class="label" href="contact.asp">Contact</a></li>
<li class="item"><a class="label" href="about.asp">About</a></li>
</ul>
</div>
<div class="main">
<img class="hub" width="80%" height="80%" src="img/background.png" alt="Hub">
</div>
</body>
</html>
你可以看到在www.theshieldnetwork.com的網站。你有什麼想法我將如何解決它。
這是一個圖像,我相信這個技巧只能用於圖像。 – Gusman
有沒有什麼辦法讓文字像圖片一樣? @Gusman –
不,不存在 – Gusman