- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我浏览了数百个关于教程、问题论坛、youtube 视频等的网页。我尝试编辑 header.php、创建子主题和编辑新样式表,甚至将我的部分 css 与此页面上的 html。似乎没有什么能完全影响现有的 CSS 并以我希望的方式显示页面。
目标是让 wordpress 页面看起来像样式正确的页面。
我在本地主机上创建的文件中正确实现设计的照片:here
还有一张当我将 HTML 放入 wordpress 页面时错误实现的设计的照片:here
这是 CSS:
body {
font-family: "AvenirNext-Regular", Avenir, Arial, sans-serif;
font-size: 16px;
line-height: 1.5em;
color: #545454;
}
h1, h2, h4, h5, h6 {
color: #b1997b;
font-weight: 600; !important
line-height: 1.3em; !important
font-family: "AvenirNext-Regular", Avenir, Arial, sans-serif; !important
}
a {
text-align: center;
text-decoration: none;
color: #b1997b;
font-size: 1em;
display: inline;
}
a:hover{
text-decoration: underline;
}
.input {
font-family: "AvenirNext-Regular", Avenir, Arial, sans-serif;
display: block;
height: 3em;
width: 20em;
margin: 0 auto;
border: none;
border-bottom: 0.05em solid #9C9B9B;
}
h3 {
font-size: 1em;
color: #84A0B1;
font-weight: 600;
line-height: 1.3em;
display: inline;
font-family: "AvenirNext-Regular", Avenir, Arial, sans-serif;
}
h2 {
margin-top: 1.3em; !important
font-family: "AvenirNext-Regular", Avenir, Arial, sans-serif; !important
}
b, strong {
font-weight: 600;
}
.buttonText {
text-align: center;
text-decoration: none;
color: #84A0B1;
font-size: 1.2em;
display: inline;
}
blueColor {
color: #84A0B1;
}
brownColor {
color: #b1997b;
}
hr {
display: block;
}
grayColor {
color: #9C9B9B;
}
samp {
display: none;
}
.submitbutton{
display: block; /* inline for text and button */
border: 0.1em;
border-radius: 0.5em;
background-color: #e6e5e5;
width: 14em;
height: 3.5em;
outline-color: #C0C0C0;
text-align: center;
text-decoration: none;
color: #84A0B1;
font-size: 0.7em;
}
.offColor {
background-color: #c7c7c7;
}
.canceler {
display: block;
margin: 0.5em;
border: 0.1em;
border-radius: 0.5em;
background-color: #e6e5e5;
width: 6em;
height: 3em;
outline-color: #C0C0C0;
}
.linktext{
display: inline;
margin: 0.5em;
text-align: left;
color: #84A0B1;
font-size: 1em;
}
.hidden {
display: none;
}
/* Start by setting display:none to make this hidden.
Then we position it in relation to the viewport window
with position:fixed. Width, height, top and left speak
for themselves. Background we set to 80% white with
our animation centered, and no-repeating */
.modal {
display: inherit;
margin-left: auto;
margin-right: auto;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
height: 12.5em;
width: 10em;
border-style: none;
z-index: 1002;
}
.centered {
position: fixed;
top: 50%;
left: 50%;
/* bring your own prefixes */
transform: translate(-50%, -50%);
}
.overlay {
position:fixed;
top:0;
bottom:0;
left:0;
right:0;
background-color: #FFFFFF;
opacity:0.8;
z-index:1001;
}
.stop {display: none;}
.show {display: block;}
这是页面的 html:
<body>
<!-- Locations --!>
<h2 class = "h2 locations" style = "text-align: center;">look for your location</h2>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<p class="locations" style = "display: block; text-align: center">california</p>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block" >beverly hills</h3>
<p class="locations" style = "display: block">9873 S. Santa Monica Blvd.<br> Beverly Hills, CA 90212</p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="beverlyHills" id = "beverly hills"><p class = "buttonText">select</p></button>
</div>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block"">dana point</h3>
<p class="locations" style = "display: block">34241 E. Pacific Coast Hwy, Ste. 201 <br> Dana Point, CA 92629 </p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="danaPoint" id = "dana point"><p class = "buttonText">select</p></button>
</div>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block">manhattan beach</h3>
<p class="locations" style = "display: block">3713 Highland Ave, 2nd Floor<br> Manhattan Beach, CA 90266</p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="manhattanBeach" id = "manhattan beach"><p class = "buttonText">select</p></button>
</div>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block">newport beach</h3>
<p class="locations" style = "display: block">2744 East Coast Hwy, 2nd Floor <br>Newport Beach, CA 92625</p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="newportBeach" id = "newport beach"><p class = "buttonText">select</p></button>
</div>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block">santa monica</h3>
<p class="locations" style = "display: block">1229 Montana Ave, 2nd Floor<br> Santa Monica, CA 90403</p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="santaMonica" id = "santa monica"><p class = "buttonText">select</p></button>
</div>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<p class="locations" style = "display: block; text-align: center">new york</p>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block">union square</h3>
<p class="locations" style = "display: block">114 4th Ave.<br> New York, NY 10003 </p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="unionSquare" id = "union square"><p class = "buttonText">select</p></button>
</div>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<p class="locations" style = "display: block; text-align: center">pennsylvania</p>
<hr class="locations" style = "margin-left: 1em; margin-right: 1em"></hr>
<div style = "display: -webkit-flex; -webkit-align-items: center; display: flex; align-items: center;">
<div style = "-webkit-flex: 1; flex: 1; display: block; margin-left: 1.5em; min-width: 13em">
<h3 class="locations" style = "display: block">philadelphia</h3>
<p class="locations" style = "display: block">1120 Walnut St. <br> Philadelphia, PA 19107</p>
</div>
<button type="button" style = "width: 10em; margin-right: 2em" class="locations submitbutton" name="philadelphia" id = "philadelphia"><p class = "buttonText">select</p></button>
</div>
</body>
最佳答案
您可以尝试将作用域类添加到页面正文中 <body class="this-page-class">...</body>
并具有仅适用于该类范围内的那些类的规则。
关于html - 为单个页面覆盖主题的 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38107939/
这个问题已经有答案了: Cannot create AlertDialog: AppCompat error (2 个回答) 已关闭 6 年前。 当我在列表项中调用警报对话框时,我的应用程序崩溃了。我
我在 Angular 应用程序中安装了 Material UI,现在我收到错误,没有导出的成员 Observable 错误, 我删除了节点模块并重新安装,问题仍然存在 ERROR in node_mo
我有一个架构,其中有两个独立的应用程序。原始来源是一个sql数据库。 App1 监听 CDC 表以跟踪对该数据库中表的更改、规范化和序列化这些更改。它获取这些序列化消息并将它们发送到 Kafka 主题
这个问题在这里已经有了答案: Material Design, AppCompat, and Backwards Compatibility (1 个回答) 关闭 6 年前。 我收到如下错误信息:
我喜欢新 Office 套件和 Visual Studio 上的窗口镶边: 当然,我仍在为 Windows 7 开发应用程序,但我想知道是否有一种快速且简单的方法(阅读:WPF 样式或 Windows
我正在使用 HoloEverywhere-1.6.8。 我有一个基于 Holo.Theme 的自定义主题。 ... 我遇到了下面的崩溃,但它只出现在以下设备上: Galaxy Tab 10.1 P
我正在尝试为 Angular 的 DevExtreme 小部件加载主题。我采用了不同的方法: 在 angular.json 中设置样式但不会产生任何影响: "projects": { "my-proj
我想定义一个 android 样式,它扩展了一个在不同的应用程序/包中定义的样式,而不是作为库导入。 从对android资源的xml引用的定义here : @[:]/ 似乎可以在定义资源的地方指定一个
我正在尝试测试一种制作主题的方法,但我使用的方法并没有给我预期的结果。这是我的设置: drawable/dummy.xml 值/mythemes.xml @style
通过 telnet 使用 IMAP,我希望能够从特定的给定电子邮件中提取主题。现在我知道 fetch 命令负责从电子邮件中获取数据。 我的问题是,如何在不使用对 BODY[HEADER.FIELDS
我刚刚开始使用 RStudio 中的一些新的 knitr 功能。 我已经尝试在 R Markdown 设置对话框中选择几个不同的主题,但这些似乎对我生成的文档的样式没有任何明显的影响。应该,还是我错过
在我的应用程序中,我有多种主题样式(您可以将它们视为不同的、单独的 CSS 样式文件)。我想开始使用 CSS 模块,但我什至不知道如何 import我的第一个文件。 让我们假设以下(简单)目录结构:
有没有一种方法可以在一个 Azure 主题订阅上拥有多个监听客户端,并且它们都接收所有消息?我的理解是订阅的唯一实现是发布的消息仅传递到该订阅上的一个客户端,因为它就像一个队列。 可以使用同一订阅将这
我有一台 super 光滑的显示器,所以白天我可以比深色主题上的代码更好地看到自己的倒影。因此,我认为如果我可以在 vimrc 中有一个简单的 if 开关来根据一天中的时间设置深色主题或浅色主题,那就
我希望在我的 Symfony2 项目中提供基本的主题支持,因此我希望为每个主题提供单独的静态文件(css、js、img)。 我尝试添加 assetic: read_from: %kernel
有没有一种方法可以在一个 Azure 主题订阅上拥有多个监听客户端,并且它们都接收所有消息?我的理解是订阅的唯一实现是发布的消息仅传递到该订阅上的一个客户端,因为它就像一个队列。 可以使用同一订阅将这
在 NES 上有多个处于 WAITING 状态的“Discovery Worker”和“Keep Alive”线程是预期的行为吗? "DiscoveryWorker-10" Id=62 WAITING
我正在尝试找到最适合加载图像的颜色并将其应用到背景中。适应图像并使 UI 感觉更自然。 到目前为止我已经找到了 2 个方案: 1> 平均像素(下面的代码): final Color acclimati
我知道每个请求都由一个 servlet 线程提供服务,但是对于一个用户 session ,两个请求是否可以由两个不同的线程提供服务? 如果上述情况真的发生,那么第一个请求服务线程存储的线程局部变量被第
我无法理解操作栏外观与主题化之间的交互模式。我的应用设置为使用默认主题,我认为它是深色的: 通过应用范围内的样式从应用中删除操作栏会导致主要 Activity 的黑色背景: 没有 and
我是一名优秀的程序员,十分优秀!