我不能让照片并排(I cant make pictures go side by side)
我试图为我的网站制作一个关于我们的页面,但似乎我不能让这些图片并排。 顺便说一句,我看过其他帖子,但我真的不明白。
.Button { background-color: Plum; border: 1px solid; border-color: black; padding: 10px 25px; text-align: center; display: inline-block; font-size: 16px; font-family: hacked; border-radius: 8px; text-color: black; text-shadow: 2px 2px grey; } .sub { position: relative; } .itmHolder { position: relative; } .itmHolder:nth-child(2), .itmHolder:nth-child(3) { position: absolute; top: 0; } .og { margin-top: 50px; position: center; text-align: center; } h1 { font-size: 400%; color: Plum; text-shadow: 4px 4px Black; } pre { font-size: 100%; color: Plum; text-shadow: 2px 2px Black; } body { background-image: url("lightning.gif"); background-repeat: no-repeat; -webkit-transform: rotateX(0); background-size: cover; background-position: center center; min-height: 100vh; } a:link, a:visited { color: black; text-align: center; text-decoration: none; display: inline-block; } .img-with-text { text-align: justify; width: [400px]; } .img-with-text img { display: block; margin: 0 auto; } pret { font-size: 200%; color: Plum; text-shadow: 2px 2px Black; }
<body background="background.jpg"> <form action="selve websiten.html"> <div class="og"> <div class="itmHolder"> <div class="sub"> <button type="button" class="Button"><a href="selve_websiten.html">Frontpage</a></button> <button type="button" class="Button"><a href="buynow.html">Buy now</a></button> </div> <font size=6> <pre style="font-family:kenyan coffee;"> Hello, our names is William and Emal. We've made this website for our own interest and trying to make a future for us. We are 14 and 15 years of age and, we both live in southern Denmark. On this website we will mostly be selling steam items, games and etc. But in the future its possible we are going to be selling other stuff like clothing, cups and etc.</pre> </font> <div class="img-with-text"> <img src="emal.png" alt="Emal" style="width:400px;height:400px;" /> <center> <pret style="font-family:easycore;">Emal Sahari, Owner and Founder of Future</p> </center> </div> <div class="img-with-text"> <img src="william.jpg" alt="William" style="width:400px;height:400px;" /> <center> <pret style="font-family:easycore;">William Lauritsen, Owner and Founder of Future</p> </center> </div> </body>
I've tried to make an About Us page for my website but it doesn't seem like I can make the pictures go side by side. And by the way, I have looked at other posts but I don't really understand it.
.Button { background-color: Plum; border: 1px solid; border-color: black; padding: 10px 25px; text-align: center; display: inline-block; font-size: 16px; font-family: hacked; border-radius: 8px; text-color: black; text-shadow: 2px 2px grey; } .sub { position: relative; } .itmHolder { position: relative; } .itmHolder:nth-child(2), .itmHolder:nth-child(3) { position: absolute; top: 0; } .og { margin-top: 50px; position: center; text-align: center; } h1 { font-size: 400%; color: Plum; text-shadow: 4px 4px Black; } pre { font-size: 100%; color: Plum; text-shadow: 2px 2px Black; } body { background-image: url("lightning.gif"); background-repeat: no-repeat; -webkit-transform: rotateX(0); background-size: cover; background-position: center center; min-height: 100vh; } a:link, a:visited { color: black; text-align: center; text-decoration: none; display: inline-block; } .img-with-text { text-align: justify; width: [400px]; } .img-with-text img { display: block; margin: 0 auto; } pret { font-size: 200%; color: Plum; text-shadow: 2px 2px Black; }
<body background="background.jpg"> <form action="selve websiten.html"> <div class="og"> <div class="itmHolder"> <div class="sub"> <button type="button" class="Button"><a href="selve_websiten.html">Frontpage</a></button> <button type="button" class="Button"><a href="buynow.html">Buy now</a></button> </div> <font size=6> <pre style="font-family:kenyan coffee;"> Hello, our names is William and Emal. We've made this website for our own interest and trying to make a future for us. We are 14 and 15 years of age and, we both live in southern Denmark. On this website we will mostly be selling steam items, games and etc. But in the future its possible we are going to be selling other stuff like clothing, cups and etc.</pre> </font> <div class="img-with-text"> <img src="emal.png" alt="Emal" style="width:400px;height:400px;" /> <center> <pret style="font-family:easycore;">Emal Sahari, Owner and Founder of Future</p> </center> </div> <div class="img-with-text"> <img src="william.jpg" alt="William" style="width:400px;height:400px;" /> <center> <pret style="font-family:easycore;">William Lauritsen, Owner and Founder of Future</p> </center> </div> </body>
原文:https://stackoverflow.com/questions/44672862
最满意答案
如果要解析.one文件中的文本,可以使用Onenote的应用程序接口。 通过使用它,您可以阅读onenote页面(XML输出)并根据需要进行解析。 应用程序界面2013 。
页面内容: http : //pastebin.com/acgaBSe3
If you want to parse text in .one file you can use Application Interface of Onenote. By using this you can read the onenote page(XML output) and parse as you want. Application Interface 2013.
Page content: http://pastebin.com/acgaBSe3
相关问答
更多-
我放弃了尝试手动插入RTF,并决定使用剪贴板方法。 我能从这种解决方案中找到的唯一不利之处是它将剪贴板内容删除。 我在粘贴图像之前简单地保存了它们,然后像这样设置它: internal void InsertImage(Image img) { IDataObject obj = Clipboard.GetDataObject(); Clipboard.Clear(); Clipboard.SetImage(img); this.Paste(); Clipboar ...
-
我认为您应该通过将“richTextBox1.Text”更改为“richTextBox1.RTF”将文本格式更改为RTF格式 I Think you should change the text format to RTF Format by changing "richTextBox1.Text" to "richTextBox1.RTF"
-
如何在C ++ CLI中将简单的静态RTF添加到.NET RichTextBox(How to add simple static RTF to a .NET RichTextBox in C++CLI)[2022-07-03]
您的字符串有问题,编译器不会像您想象的那样解释它: myRichTextBox->Rtf = "{\rtf1\ansi\bHeader\b0: This is a test}"; 例如\r解释为回车符。 这就是为什么你看到在C#中使用@ (逐字字符串)的建议: // This is C# syntax myRichTextBox.Rtf = @"{\rtf1\ansi\bHeader\b0: This is a test}"; myRichTextBox.Rtf = "{\\rtf1\\ansi\\bHe ... -
使用TextRange和FileStream if (openFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK ) { TextRange range; System.IO.FileStream fStream; if (System.IO.File.Exists(openFile1.FileName)) { range = new TextRange(RichTextBox1.Doc ...
-
要查看RTF文档如何以其原始形式查看,请在支持RTF的编辑器(如wordpad)中保存一些文本,然后在纯文本编辑器中再次打开它。 例如,这个RTF文件: 你好, 世界! 在纯文本模式下打开时会变成: {\rtf1\ansi\ansicpg1252\deff0\deflang1030{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\f0\fs20 Hello,\par ...
-
您只需使用Text属性: richTextBox1.Text = "╔═══This is only an example, the special characters may change═══╗"; 如果你想使用RTF属性:看一下这个问题: 如何将unicode字符串输出到RTF(使用C#) 您需要使用类似的东西将特殊字符转换为rtf格式: static string GetRtfUnicodeEscapedString(string s) { var sb = new StringBuil ...
-
如果要解析.one文件中的文本,可以使用Onenote的应用程序接口。 通过使用它,您可以阅读onenote页面(XML输出)并根据需要进行解析。 应用程序界面2013 。 页面内容: http : //pastebin.com/acgaBSe3 页面是: If you want to parse text in .one file you can use Application Interface of Onenote. By using this you can read the onenote pag ...
-
string rtfString = "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Microsoft Sans Serif;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs17 Sample \\b Text\\b0\\par\r\n}\r\n"; richTextBox1.Rtf = rtfString; //编辑:您可以从rtf文件加载此字符串,但它会很长且无效: ...
-
将格式格式添加到以RTF格式保存的RichTextBox内容(Add landscape format to RichTextBox content saved as RTF)[2023-07-20]
自己添加\landscape是不够的,您还需要将纸张宽度和高度设置为横向: \landscape\paperw15840\paperh12240 Adding \landscape by itself isn't enough, you also need to set the paper width and height to be landscape: \landscape\paperw15840\paperh12240 -
在加载C#时将嵌入式资源.rtf文件加载到richtextbox中(Loading embedded resource .rtf file into richtextbox on load C#)[2023-11-02]
我想到了: creditAssm.GetManifestResourceStream("YDisplayView.credits.rtf")) 需要是: creditAssm.GetManifestResourceStream("YDisplayView.Resources.credits.rtf")) 编辑:出于某种原因,这一次我无法让上面的代码工作,但我发现另一个这样做希望或者/或将有助于新编码器:) string rtf = yourAppName.Properties.Resources.you ...